package com.kang.service.userService;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kang.bean.Friend;
import com.kang.commons.Result;
import com.kang.vo.FriendGroupVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("springcloud-zuul") //调用的服务名称  spring。application。name的值
@RequestMapping("/fawu/user-api/friend")
@Service
public interface FriendService{
    @GetMapping
    Result getByUserId(@RequestParam Long userId);
    @PostMapping
    Result addFriend(@RequestBody Friend friend);
}
